package BookParts;

/**
 * Created with IntelliJ IDEA.
 * User: zhunusbekova.arailym
 * Date: 22.08.13
 * Time: 13:41
 * To change this template use File | Settings | File Templates.
 */
public class Word extends SentencePart{
    private static final long serialVersionUID = 1L;
    public Word(String word) {

        char[] chars = new char[word.length()];
        word.getChars(0, word.length(), chars, 0);
        for (char c : chars) {
            this.add(new Symbol(c));
            System.out.println(c);
    }
}
}
